package com.cloudsea.yunhaistores.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "商户登录请求数据传输对象")
public class LoginDTO {

    @Schema(description = "登录用户名，目前为注册时使用的手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138001")
    @NotBlank(message = "登录名不能为空")
    private String username;

    @Schema(description = "登录密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "password123")
    @NotBlank(message = "密码不能为空")
    private String password;
}